package com.ruoyi.crop.api.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 农户管理表
 * @TableName src_farmer
 */
@TableName(value ="src_farmer")
@Data
@ContentRowHeight(20)//行高
@ColumnWidth(20)//列宽
@HeadRowHeight(20)//标题高度
public class Farmer implements Serializable {
    /**
     * 农户主键ID
     */
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Integer farmerId;

    /**
     * 农户名称
     */
    @ExcelProperty(value = "农户名称")
    private String farmerName;

    /**
     * 生产商编码
     */
    @ExcelProperty(value = "生产商编码")
    private String producerCode;

    /**
     * 负责人
     */
    @ExcelProperty(value = "负责人")
    private String person;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String phone;

    /**
     * 省ID
     */
    @ExcelIgnore
    private Integer xid;

    /**
     * 市ID
     */
    @ExcelIgnore
    private Integer yid;

    /**
     * 县ID
     */
    @ExcelIgnore
    private Integer zid;

    /**
     * 删除标识
     */
    @ExcelIgnore
    @TableLogic
    private Integer delFlag;

    /**
     * 创建者
     */
    @ExcelIgnore
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新者
     */
    @ExcelIgnore
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelIgnore
    private String remark;

    //地址
    @ExcelProperty(value = "地址")
    @TableField(exist = false)
    private String address;

    @ExcelIgnore
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
